package org.neuedu.chapter05_0618;

public class Practice03 {
    public static void main(String[] args) {
        test(300);
    }
    public static void test(int num) {
        while (true) {
            boolean b = true;
            for (int i = 2; i < num; i++) {
                if (num % i == 0) {
                    b = false;
                    break;
                }
            }
            if (b) {
                System.out.println(num);
                break;
            }
            num++;
        }
    }
}
